import request from "@/utils/request";
// 列表
export function list(data) {
  return request("goods/goods/list", data, "get");
}
// 详情
export function info(data) {
  return request("goods/goods/info", data, "get");
}
// 添加
export function add(data) {
  return request("goods/goods/add", data, "post");
}
// 编辑
export function edit(data) {
  return request("goods/goods/edit", data, "post");
}
// 删除
export function del(data) {
  return request("goods/goods/del", data, "post");
}
// 开启或者关闭
export function open(data) {
  return request("goods/goods/open", data, "post");
}
// 特价商品列表
export function specialGoods(data) {
  return request("goods/goods/specialGoods", data, "get");
}
// 开启或者关闭特价商品
export function openSGoods(data) {
  return request("goods/goods/openSGoods", data, "post");
}
//添加虚拟卡号
export function addVirtuallyCard(data) {
  return request("goods/goods/addVirtuallyCard", data, "post");
}
//查看虚拟卡号
export function getVirtuallyCard(data) {
  return request("goods/goods/getVirtuallyCard", data, "get");
}
// 设置是否自动发货
export function setVAutoSend(data) {
  return request("goods/goods/setVAutoSend", data, "post");
}
// 膨胀金商品列表
export function expansionGoods(data) {
  return request("goods/goods/expansionGoods", data, "get");
}
// 开启或者关闭膨胀金商品
export function openEGoods(data) {
  return request("goods/goods/openEGoods", data, "post");
}

// 膨胀金排序
export function expansionGoodsSort(data) {
  return request("goods/goods/expansionGoodsSort", data, "post");
}
